package banking.domain;

import java.util.ArrayList;
import java.util.List;

public class Customer {
    private String firstName;
    private String lastName;
    private List<Account> account = new ArrayList<>();


    public Customer(String f, String l) {
        this.firstName = f;
        this.lastName = l;
    }

    public void addAccount(Account account) {
        this.account.add(account);
    }

    public Account getAccount(int index) {
        return this.account.get(index);
    }

    public int getNumOfAccounts() {
        return this.account.size();
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

}
